package com.zhuoyue.biz.core.api.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.zhuoyue.biz.core.api.domain.LocalSceneGatewayRelation;
import com.zhuoyue.biz.core.api.dto.localscene.GateWayDeviceDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wjming
 * @ClassName: LocalSceneGatewayRelationMapper
 * @Description: 本地场景与网关之间的关系
 * @Date 2021-07-08 13:57
 */
public interface LocalSceneGatewayRelationMapper extends BaseMapper<LocalSceneGatewayRelation> {

    /**
     * 通过ID查询关系列表
     * @param eq
     * @return
     */
    List<GateWayDeviceDTO> selectListById(@Param(Constants.WRAPPER) QueryWrapper<LocalSceneGatewayRelation> eq);
}